﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;

namespace SlaughterItem.Common.DBContext
{
    public class DbContextDesignTimeFactory : IDesignTimeDbContextFactory<EFDBContext>
    {
        public EFDBContext CreateDbContext(string[] args)
        {
             var abc = new DbContextOptionsBuilder<EFDBContext>();
            abc.UseMySql("server=8.152.200.197;Port=3306;uid=root;pwd=lb061100.;Database=chilong2024DB;", new MySqlServerVersion("8.0.27"));
            return new EFDBContext(abc.Options);
        }
    }
}
